package com.example.restatr.Atcivity.ActivityManager;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;

import android.os.Bundle;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.restatr.Atcivity.ContentAt;
import com.example.restatr.Atcivity.Main.MainActivity;
import com.example.restatr.R;
import com.example.restatr.Tools;
import com.google.android.material.tabs.TabLayout;
import com.youth.banner.Banner;

import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;

public class HuoDongAt extends AppCompatActivity {
    private Toolbar tb;
    private TextView barTitle;
    private EditText search;
    private Banner rbt;
    private List<String> title = new ArrayList<>();//标题文字
    public static List<String> themeId = new ArrayList<>();//主题id
    private List<Fragment> fragments=new ArrayList<>();
    private TabLayout Tab;
    public static ViewPager XwPager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate( savedInstanceState );
        setContentView( R.layout.activity_huo_dong_at );

        tb = findViewById( R.id.toolbar);
        barTitle = findViewById( R.id.bar_Title );
        search = findViewById( R.id.search );
        rbt = findViewById( R.id.banner );
        Tab = findViewById(R.id.Tab);
        XwPager = findViewById(R.id.XwPager);
        MainActivity.info="hd";
        Tools.GetXwFl( "/prod-api/api/activity/category/list","",HuoDongAt.this,"data",title,themeId, fragments,XwPager,Tab,getSupportFragmentManager());
        Tools.SetBarTitle( tb, barTitle, "活动管理", search, HuoDongAt.this ,false);
        Tools.SetBanner("/prod-api/api/activity/rotation/list","","rows","advImg",rbt,this);
    }


    @Override
    protected void onResume() {
        super.onResume();
    }
}